#include "realminus.h"

RealMinus::RealMinus() : RealOperation() {
}

RealMinus::~RealMinus() {
}

char RealMinus::getSign() {
    return '-';
}

void RealMinus::evaluateMe(LinkedList<double>& evaluationStack, const double* positionArray) {
    assert(evaluationStack.getSize()>1);
    evaluationStack.getSecondLastElement()-=evaluationStack.getElementAtEnd();
    delete &evaluationStack.pop();
}
